<div class="wrap">
  <div id="icon-index" class="icon32"></div>
  <h2><?php e($pageTitle) ?></h2>
  <div id="grid-wrap">
    <table id="stokistlist" style="display:none"></table>
  </div>
              <div id="popup" class="abs" style="display:none;">
                <div class="rel">
                  <table id="popup_table">
                    <tbody>
                      <tr>
                        <td class="tl"></td>
                        <td class="tm"></td>
                        <td class="tr"></td>
                      </tr>
                      <tr>
                        <td class="ml"></td>
                        <td class="mm">
                          <div id="popup_content">
                            <div class="wrap fLeft"><h2 id="popup-title" style="padding-top:0;"></h2></div>
                            <div id="popup-message"></div>
                            <div id="popup-progress" class="fRight" style="visibility:hidden;"></div>
                            <div class="clear"></div>

                                <div id="stockist-wrap" class="popup_content" style="display:;">
                                  <form id="form-stockist" action="<?php e($this->base); ?>/admin/stockists/update" method="post" class="infotxt" onsubmit="return save()">
                                    <div class="fLeft" style="width:300px;">
                                          <table border="0" cellpadding="2" cellspacing="3" width="100%">
                                            <tbody>
                                              <tr>
                                                <td width="133" align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('Name'); ?> :</td>
                                                <td class="infotxt"><input type="text" id="name" name="name" class="input req" /></td>
                                              </tr>
                                              <tr>
                                                <td align="right" class="infotxt">&nbsp;<?php __('Mobile'); ?> :</td>
                                                <td class="infotxt"><input type="text" id="mobile" name="mobile" class="input" /></td>
                                              </tr>
                                              <tr>
                                                <td align="right" valign="top" class="infotxt" style="padding-top:6px;">&nbsp;<?php __('Address'); ?> :</td>
                                                <td class="infotxt">
                                                  <textarea id="address" name="address" class="input" style="height:41px;"></textarea>
                                                </td>
                                              </tr>
                                              <tr>
                                                <td align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('Date Join'); ?> :</td>
                                                <td class="infotxt">
                                                  <input type="hidden" id="date_join" name="date_join" />
                                                  <input type="text" id="show-date" value="select.." readonly="readonly" class="date req" />
                                                </td>
                                              </tr>
                                              <tr>
                                                <td align="right" class="infotxt">&nbsp;<?php __('Deposit'); ?> :</td>
                                                <td class="infotxt"><input type="text" id="deposit" name="deposit" class="input" /></td>
                                              </tr>
                                              <tr>
                                                <td align="right" class="infotxt">&nbsp;<?php __('Remark'); ?> :</td>
                                                <td class="infotxt"><input type="text" id="remark" name="remark" class="input" /></td>
                                              </tr>
                                              <tr>
                                                <td colspan="2" class="infotxt"><span class="style16">*</span>&nbsp;<b><?php __('Required Field'); ?></b></td>
                                              </tr>
                                            </tbody>
                                          </table>
                                    </div>
                                    <div class="fRight" style="width:305px; margin-left:30px;">
                                          <table border="0" cellpadding="2" cellspacing="3" width="100%">
                                            <tbody>
                                              <tr>
                                                <td align="right" class="infotxt">&nbsp;<?php __('Telephone'); ?> :</td>
                                                <td class="infotxt"><input type="text" id="tel" name="tel" class="input" /></td>
                                              </tr>
                                              <tr>
                                                <td align="right" class="infotxt">&nbsp;<?php __('Fax'); ?> :</td>
                                                <td class="infotxt"><input type="text" id="fax" name="fax" class="input" /></td>
                                              </tr>
                                              <tr>
                                                <td align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('City'); ?> :</td>
                                                <td class="infotxt"><input type="text" id="city" name="city" class="input req" /></td>
                                              </tr>
                                              <tr>
                                                <td align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('State'); ?> :</td>
                                                <td class="infotxt"><input type="text" id="state" name="state" class="input req" /></td>
                                              </tr>
                                              <tr>
                                                <td align="right" class="infotxt"><span class="style16">*</span>&nbsp;<?php __('Country'); ?> :</td>
                                                <td class="infotxt"><input type="text" id="country" name="country" class="input req" /></td>
                                              </tr>
                                              <tr>
                                                <td align="right" class="infotxt">&nbsp;<?php __('Bank Account Info'); ?> :</td>
                                                <td class="infotxt"><input type="text" id="bank_account" name="bank_account" class="input" /></td>
                                              </tr>
                                            </tbody>
                                          </table>
                                    </div>
                                    <div class="clear"></div>
                                    <div class="center popupActions">
                                      <input type="hidden" id="id" name="id" value="" />
                                      <input type="submit" value="Save" />
                                      <input type="button" value="Cancel" onclick="closePopup();" />
                                    </div>
                                  </form>
                                </div>
                          </div>
                        </td>
                        <td class="mr"></td>
                      </tr>
                      <tr>
                        <td class="bl"></td>
                        <td class="bm"></td>
                        <td class="br"></td>
                      </tr>
                    </tbody>
                  </table>
                  <div title="Close" id="popup_close" onclick="closePopup();"></div>
                </div>
              </div>
</div>

<script>
var _webroot   = '<?php e($this->base); ?>';
var _countries = ['<?php echo @implode("', '", $countries); ?>'];
<?php $this->addScript('Ext.onReady(function() { init(); });'); ?>
</script>